package com.cloudfun.campusshare.device.protocol.handler;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.jms.JMSException;
import javax.jms.Message;

/**
 * Created by Huqin on 2020/3/25
 */
@Slf4j
@Component
public class DefaultAliyunIotMsgHandler implements AliyunIotMsgHandler {

    @Override
    public boolean support(Message message) throws JMSException {
        return false;
    }

    @Override
    public void handle(Message message) throws JMSException {
        String topic = message.getStringProperty("topic");
        String messageId = message.getStringProperty("messageId");
        log.debug("received message can not process. topic = {}, messageId = {}", topic, messageId);
    }
}
